#include "mb.h"
#include "mbutils.h"

int main(void)
{
    eMBErrorCode    eStatus;

    eStatus = eMBInit( MB_RTU, 0x05, 0, 9600, MB_PAR_NONE);
    
    /* Enable the Modbus Protocol Stack. */
    eStatus = eMBEnable(  );
	eStatus = eStatus;             
	
    while(1)
	{
		eMBPoll();      // modbus轮询  
	}
}


